<!--{include html_header}-->
<div class="topbar">
<div class="w">
		<div class="toplogins">
		<!--{if $login_user}-->
			<ul id="menu_links">
				<li class="username">您好，<!--{if $_SESSION['ali_token']}-->
				${mb_strimwidth($login_user['realname'],0,10)}！
                <!--{else}-->
				${mb_strimwidth($login_user['username'],0,10)}！
				<!--{/if}--></li>
				<li class="logout"><a href="/account/logout.php">退出</a></li>
			</ul>
			
		<!--{else}-->
			<ul class="links">
				<li class="login"><a href="/account/login.php">登录</a></li>
				<li class="signup"><a href="/account/signup.php">注册</a></li>
			</ul>
		<!--{/if}-->
			<div class="line islogin"></div>
		</div>

<ul class="topnav">
<li id="dingyue" onmouseover="this.className='hover'" onmouseout="this.className=''">
	<a target="_blank" href="/subscribe.php" class="help">订阅<b class="ico down"></b></a>
	<div id="dingyue_sub">
		<form action="/subscribe.php" method="post" id="header-subscribe-form">
			<input type="hidden" name="city_id" value="">
			<input id="header-subscribe-email" type="text" xtip="输入Email，订阅每日团购信息..." value="" class="f-text" name="email" style="color: rgb(153, 153, 153);">
			<input type="hidden" value="1" name="cityid">
			<input type="submit" class="commit" value="订阅" />
		</form>

	</div>
</li>
<li id="myfocus" onmouseover="this.className='hover'" onmouseout="this.className=''"  >
	<a class="help" >关注<b class="ico down"></b></a>
	<div id="chn" >
	<ul>
	<li><a class="sina" href='' target="_blank">新浪微博</a></li>
	<li><a class="qq"  href='' target="_blank">腾讯微博</a></li>
	</ul>
	</div>
</li>
<li class="n_phone"><a href="/help/mobile" target="_blank">手机版<b class="ico phone"></b></a></li>

<li class="n_phone"><a href="/account/invite.php" target="_blank">邀请返利&nbsp;${abs($INI['system']['invitecredit'])}&nbsp;元<b class="ico phone"></b></a></li>

<li><a href="/help/tour.php">帮助</a></li>
<!--{if option_yes('trsimple')}-->
		<li><a href="javascript:;" onclick="return X.misc.locale();">简繁转换</a></li>
<!--{/if}-->
</ul>
</div>

<script type="text/javascript">
	$(function(){
		$("#myfocus").mouseover(function(){
			$("#chn").show();
		});
		$("#myfocus").mouseout(function(){
			$("#chn").hide();
		});
		$("#dingyue").mouseover(function(){
			$("#dingyue_sub").show();
		});
		$("#dingyue").mouseout(function(){
			$("#dingyue_sub").hide();
		});
	})
</script>


</div>
<div id="hdw">
	<div id="hd" class="clear">
		

		<div id="logo"><a href="/index.php" class="link"><img src="/static/img/logo.png" alt="{$INI['system']['sitename']}" /></a></div>
		<div class="guides">

			<!--{if count($hotcities)>1}-->
			<div id="guides-city-change" class="city">
				<span class="city_name">{$city['name']}</span>
				<span class="drop"></span>
			</div>
			
			<!--<div id="guides-city-change" class="change">切换城市</div>-->
			<div id="guides-city-list" class="city-list">
				<ul>${current_city($city['ename'], $hotcities)}</ul>
				<div class="other"><a href="/city.php">其他城市？</a></div>
			</div>
			<!--{/if}-->
		</div>

		<div class="index_search">
			<form id="indexSearchForm" method="get" action="/team/index.php">
				<input type="text"  x-webkit-speech class="index_search_text" id="searchW" name="searchName" xtip="输入团购商户名、类别、商区等关键字..." />
				<input  type="submit" class="index_search_sub" name="button" value="搜索"/>
			</form>
		</div>
		<div id="header-subscribe-body" class="subscribe">
		<!--{if option_yes('smssubscribe')}-->
		<span><a class="sms" onclick="X.miscajax('sms','subscribe');">&raquo; 短信订阅，免费！</a>&nbsp; <a class="sms" onclick="X.miscajax('sms','unsubscribe');">&raquo; 取消手机订阅</a></span>
		<!--{/if}-->
		</div>
		

	</div>
	
</div>


<div class="navwrapper clear">
	<div class="navbar">
		<div class="main_menu">
			<ul>${current_frontend()}</ul>
			<!--<ul>{include block_navigator}</ul>-->
		</div>
		<div class="logins">
		
			<ul id="menu_links">
			<li class="rvisit">
			<a id="rvisit_link">最近浏览<span class='down'></span></a>
			
			<div id="rvisit_content"></div>
			</li>
				<li class="account"><a href="/account/index.php" id="myaccount" >我的{$INI['system']['abbreviation']}
					<span class='down'></span></a>
					
					<div id="myaccount-menu"><ul >${current_account(null, true)}</ul></div>
					</li>
			</ul>
			
		
			
		</div>
	<!--{if $login_user}-->
		<ul id="myaccount-menu">${current_account(null)}</ul>
	<!--{/if}-->
	</div>
</div>


<!--{if $session_notice=Session::Get('notice',true)}-->
<div class="sysmsgw" id="sysmsg-success"><div class="sysmsg"><p>{$session_notice}</p><span class="close">关闭</span></div></div> 
<!--{/if}-->
<!--{if $session_notice=Session::Get('error',true)}-->
<div class="sysmsgw" id="sysmsg-error"><div class="sysmsg"><p>{$session_notice}</p><span class="close">关闭</span></div></div> 
<!--{/if}-->
